package com.example.springboot01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("teacher")
public class Teacher {

    @TableId(type = IdType.AUTO)
    private Integer id;

    // 工号
    private String teacherNo;

    // 关联账户 ID
    private Integer userId;

    // 名字
    private String name;

}
